package org.entity;

import java.io.Serializable;
import java.lang.String;
import java.util.Date;
import javax.persistence.*;
import java.util.Collection;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue; 
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.CascadeType;
import javax.persistence.FetchType;

import org.hibernate.type.DateType;

import java.util.ArrayList;


// TODO: Auto-generated Javadoc
/**
 * Entity implementation class for Entity: Patient.
 */

@SuppressWarnings("unused")
@Entity
public class Patient implements Serializable {

	   
	/** The pk. */
	@Id
	private Integer pk;
	
	/** The pat_id. */
	private String pat_id;
	
	/** The pat_name. */
	private String pat_name;
	
	/** The pat_fn_sx. */
	private String pat_fn_sx;
	
	/** The pat_gn_sx. */
	private String pat_gn_sx;
	
	/** The pat_sex. */
	private String pat_sex;
	
	/** The pat_birthdate. */
	private String pat_birthdate;
	
	/** The created_time. */
	private Date created_time;
	
	/** The updated_time. */
	private Date updated_time;
	
	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;

	

    /**
     * Gets the pat_id.
     *
     * @return the pat_id
     */
    public String getPat_id() {
		return this.pat_id;
	}

	/**
	 * Sets the pat_id.
	 *
	 * @param pat_id the new pat_id
	 */
	public void setPat_id(String pat_id) {
		this.pat_id = pat_id;
	}   
	
	/**
	 * Gets the pat_name.
	 *
	 * @return the pat_name
	 */
	public String getPat_name() {
		return this.pat_name;
	}

	/**
	 * Sets the pat_name.
	 *
	 * @param pat_name the new pat_name
	 */
	public void setPat_name(String pat_name) {
		this.pat_name = pat_name;
	}   
		
	/**
	 * Gets the pat_fn_sx.
	 *
	 * @return the pat_fn_sx
	 */
	public String getPat_fn_sx() {
		return pat_fn_sx;
	}

	/**
	 * Sets the pat_fn_sx.
	 *
	 * @param pat_fn_sx the pat_fn_sx to set
	 */
	public void setPat_fn_sx(String pat_fn_sx) {
		this.pat_fn_sx = pat_fn_sx;
	}

	/**
	 * Gets the pat_gn_sx.
	 *
	 * @return the pat_gn_sx
	 */
	public String getPat_gn_sx() {
		return pat_gn_sx;
	}

	/**
	 * Sets the pat_gn_sx.
	 *
	 * @param pat_gn_sx the pat_gn_sx to set
	 */
	public void setPat_gn_sx(String pat_gn_sx) {
		this.pat_gn_sx = pat_gn_sx;
	}

	/**
	 * Gets the pat_birthdate.
	 *
	 * @return the pat_birthdate
	 */
	public String getPat_birthdate() {
		return pat_birthdate;
	}
	
	/**
	 * Sets the pat_birthdate.
	 *
	 * @param pat_birthdate the pat_birthdate to set
	 */
	public void setPat_birthdate(String pat_birthdate) {
		this.pat_birthdate = pat_birthdate;
	}

	/**
	 * Sets the pat_sex.
	 *
	 * @param pat_sex the new pat_sex
	 */
	public void setPat_sex(String pat_sex) {
		this.pat_sex = pat_sex;
	}
	
	/**
	 * Gets the pat_sex.
	 *
	 * @return the pat_sex
	 */
	public String getPat_sex() {
		return pat_sex;
	}


	/**
	 * Sets the created_time.
	 *
	 * @param created_time the new created_time
	 */
	public void setCreated_time(Date created_time) {
		this.created_time = created_time;
	}

	/**
	 * Gets the created_time.
	 *
	 * @return the created_time
	 */
	public Date getCreated_time() {
		return created_time;
	}

	/**
	 * Sets the updated_time.
	 *
	 * @param updated_time the new updated_time
	 */
	public void setUpdated_time(Date updated_time) {
		this.updated_time = updated_time;
	}

	/**
	 * Gets the updated_time.
	 *
	 * @return the updated_time
	 */
	public Date getUpdated_time() {
		return updated_time;
	}
	
	/**
	 * Gets the pk.
	 *
	 * @return the pk
	 */
	public Integer getPk()
	{
		return pk;
	}
	
	/**
	 * Sets the pk.
	 *
	 * @param pk the new pk
	 */
	public void setPk(Integer pk)
	{
		this.pk = pk;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if(!(obj instanceof Patient)) {
			return false;
		}
		Patient patient = (Patient)obj;
		return (this.pk == patient.getPk());
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
		
}
